{% extends "adminbase.html" %}


{% block content %}

<h1>Create Other Admins</h1>

{% if success_message %}
	<font class="success">{{ success_message }}</font><br/><br/>
{% endif %}

<form method="post" action="/admins/createAdmin/">{% csrf_token %}
	{{ form.non_field_errors }} 
	{% for field in form %}
		<div class="fieldWrapper">
			{{ field.label_tag }}<br/>
			{% if field.errors %}
				<label class="text" style="color: #FF0000">{{ field.errors }}</label>
			{% endif %} 
			{{ field }}<br/><br/>
		</div>
	{% endfor %}
	<div>
		<label>Email </label><br/>
		{% if email_error %}
			<dd><label class="text" style="color:#FF0000" ><li>{{ email_error }}</li></label></dd>
		{% endif %} 
		<input name="email" class="element text medium" type="text" maxlength="255" value="{{ email }}"/><br/><br/><br/> 
	</div>
	<input id="search_btn" type="submit" name="submit" value="Create" /> <br/><br/>
</form>
{% endblock %}
